package com.robot.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.robot.dao.entity.Robot;
import com.robot.dao.entity.RobotUserUsetime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface RobotUserUsetimeMapper extends BaseMapper<RobotUserUsetime> {

    RobotUserUsetime queryByUseridAndRobotid(Long userId, Long robotId);

    Page<RobotUserUsetime> queryByUserid(Long userId);

    List<RobotUserUsetime> queryByRobotId(Long robotId);
}
